import request from '@/utils/request'

// 查询公寓管理列表
export function listApartmentmanagement(query) {
  return request({
    url: '/apartmentmanagement/apartmentmanagement/list',
    method: 'get',
    params: query
  })
}

// 查询公寓管理详细
export function getApartmentmanagement(id) {
  return request({
    url: '/apartmentmanagement/apartmentmanagement/' + id,
    method: 'get'
  })
}

// 新增公寓管理
export function addApartmentmanagement(data) {
  return request({
    url: '/apartmentmanagement/apartmentmanagement',
    method: 'post',
    data: data
  })
}

// 修改公寓管理
export function updateApartmentmanagement(data) {
  return request({
    url: '/apartmentmanagement/apartmentmanagement',
    method: 'put',
    data: data
  })
}

// 删除公寓管理
export function delApartmentmanagement(id) {
  return request({
    url: '/apartmentmanagement/apartmentmanagement/' + id,
    method: 'delete'
  })
}
